set user=root
set passwd=root
set port=3306

set fileName=D:\back\%date:~0,4%%date:~5,2%%date:~8,2%0%time:~1,1%%time:~3,2%%time:~6,2%.sql

mysqldump -u%user% -p%passwd% -P%port% student > %fileName%